<template>
  <dept_form :show="show" title="新增" @cancle="cancle()" @submit="submit"></dept_form>
</template>

<script setup lang="ts">
import { DeptForm } from "@/api/sys/dept/index";
import dept_form from "./components/dept_form.vue";

const props = defineProps({
  show: Boolean,
});

const emits = defineEmits(["close"]);
const submit = (formData: DeptForm) => {
  console.log(formData, "formdata");
  emits("close");
};

const cancle = () => {
  emits("close");
};
</script>
